package com.woniuxy.user.service.Impl;

import com.hc.entity.ReportInfor;
import com.woniuxy.user.mapper.ReportInforMapper;
import com.woniuxy.user.service.ReportInforService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ReportInforServiceImpl implements ReportInforService {
    @Resource
    private ReportInforMapper reportInforMapper;
    //举报用户
    @Override
    public int reportUser(ReportInfor reportInfor) {
        return reportInforMapper.reportUser(reportInfor);
    }

    @Override
    public ReportInfor getByBothId(Integer user_id, Integer notice_id) {
        return reportInforMapper.getByBothId(user_id,notice_id);
    }
}
